package com.tyk.bookstore.back.storage.repository;


import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.storage.model.dto.Warehouse4WaybillDto;
import com.tyk.bookstore.back.storage.model.dto.WarehouseNameDto;
import com.tyk.bookstore.back.storage.model.entity.WarehouseDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author tyk
 * @description 仓库管理
 */
@Mapper
public interface WarehouseRepository extends IMapper<WarehouseDo> {
    /**
     * 查询仓库名称
     */
    List<WarehouseNameDto> selectWarehouseNameDtoByIdSet(@Param("idSet") Set<Long> idSet);

    /**
     * 查询仓库信息
     */
    Warehouse4WaybillDto selectWarehouse4WaybillDtoById(@Param("id") Long id);
}
